export default {
  login: {
    title: '登录',
    formType: 'login',
    formData: [
      {
        lable: '用户名',
        inputType: 'text',
        placeholder: '请输入 6 - 8位昵称',
        lableFor: 'username',
        query: 'username',
        inputName: 'username',
      },
      {
        lable: '密码',
        inputType: 'password',
        placeholder: '请输入 8 - 12位密码 至少包含数字/大小写字符',
        lableFor: 'password',
        query: 'password',
        inputName: 'password',
      },
    ],
    btns: [
      {
        isSub: true,
        target: 'confirm',
        name: '确认',
      },
      {
        isSub: false,
        target: 'close',
        name: '关闭',
      },
    ],
  },
  register: {
    title: '注册',
    formType: 'register',
    formData: [
      {
        lable: '用户名',
        inputType: 'text',
        placeholder: '请输入 6 - 8位昵称',
        lableFor: 'username',
        query: 'username',
        inputName: 'username',
      },
      {
        lable: '密码',
        inputType: 'password',
        placeholder: '请输入 8 - 12位密码 至少包含数字/大小写字符',
        lableFor: 'password',
        query: 'password',
        inputName: 'password',
      },
      {
        lable: '邮箱',
        inputType: 'text',
        placeholder: '请输入 正确格式邮箱',
        lableFor: 'email',
        query: 'email',
        inputName: 'email',
      },
      {
        lable: '昵称',
        inputType: 'text',
        placeholder: '请输入 正确格式昵称',
        lableFor: 'nickName',
        query: 'nickName',
        inputName: 'nickName',
      },
    ],
    btns: [
      {
        isSub: true,
        target: 'confirm',
        name: '确认',
      },
      {
        isSub: false,
        target: 'close',
        name: '关闭',
      },
    ],
  },
  postColumns: {
    title: '添加分类',
    formType: 'postColumns',
    formData: [
      {
        lable: '分类名称',
        inputType: 'text',
        placeholder: '请输入分类名称',
        lableFor: 'name',
        query: 'name',
        inputName: 'name',
      },
    ],
    btns: [
      {
        isSub: true,
        target: 'confirm',
        name: '确认',
      },
      {
        isSub: false,
        target: 'close',
        name: '关闭',
      },
    ],
  },
  userInfo: {
    title: '修改信息',
    formType: 'putUserInfo',
    formData: [
      {
        lable: '用户名',
        inputType: 'text',
        placeholder: '请输入 6 - 8位昵称',
        lableFor: 'username',
        query: 'username',
        inputName: 'username',
        readonly: true,
      },
      // {
      //   lable: '修改密码',
      //   inputType: 'password',
      //   placeholder: '请输入 8 - 12位密码 至少包含数字/大小写字符',
      //   lableFor: 'password',
      //   query: 'password',
      //   inputName: 'password'
      // },
      {
        lable: '邮箱',
        inputType: 'text',
        placeholder: '请输入 正确格式邮箱',
        lableFor: 'email',
        query: 'email',
        inputName: 'email',
      },
      {
        lable: '昵称',
        inputType: 'text',
        placeholder: '请输入 正确格式昵称',
        lableFor: 'nickName',
        query: 'nickName',
        inputName: 'nickName',
      },
      {
        lable: '个性签名',
        inputType: 'text',
        placeholder: '请输入 个性签名',
        lableFor: 'signalName',
        query: 'signalName',
        inputName: 'signalName',
      },
    ],
    btns: [
      {
        isSub: true,
        target: 'confirm',
        name: '确认',
      },
      {
        isSub: false,
        target: 'close',
        name: '关闭',
      },
    ],
  },
}
